home *** CD-ROM | disk | FTP | other *** search
/ PC for Alla 2005 May / PC för Alla 0505.iso / fullversioner / realsoft3d / data1.cab / Scripting / scripts / js / real / gadget / r3macbut.js < prev    next >
Encoding:
JavaScript  |  2005-04-04  |  2.5 KB  |  105 lines

  1.  
  2. // JavaScript wrapper for r3macbut.h
  3. // Auto generated file, do not modify by hand
  4. // Copyright ⌐ 2004, Realsoft Graphics Oy
  5.  
  6. var R3_MACROBUTTON_H = 1;
  7. include("oops/r3gadget.js")
  8.  
  9.  
  10. var R3CLID_MACROBUTTON = 881;
  11.  
  12.  
  13.  
  14.  
  15.  
  16. R3MBM_EXECUTEMACRO = 881000;
  17.  
  18. function mR3MBM_EXECUTEMACRO() {
  19.   DoA(this.r3obj, 881000, 0, R3TID_INTEGER, 0);
  20. }
  21.  
  22.  
  23.  
  24.  
  25. R3MBA_MacroName = 881500;
  26. function SetR3MBA_MacroName(value) {
  27.   R3Set(this.r3obj, R3MBA_MacroName, value, R3TID_STRING, 0); 
  28. }
  29.  
  30. function GetR3MBA_MacroName() {
  31.   return R3Get(this.r3obj, R3MBA_MacroName, R3TID_STRING, 0); 
  32. }
  33.  
  34. R3MBA_ImageName = 881501;
  35. function SetR3MBA_ImageName(value) {
  36.   R3Set(this.r3obj, R3MBA_ImageName, value, R3TID_STRING, 0); 
  37. }
  38.  
  39. function GetR3MBA_ImageName() {
  40.   return R3Get(this.r3obj, R3MBA_ImageName, R3TID_STRING, 0); 
  41. }
  42.  
  43. R3MBA_Image = 881502;
  44. function SetR3MBA_Image(value) {
  45.   R3Set(this.r3obj, R3MBA_Image, value, R3TID_OBJECT, 0); 
  46. }
  47.  
  48. function GetR3MBA_Image() {
  49.   return R3ToJS(R3Get(this.r3obj, R3MBA_Image, R3TID_OBJECT, 0)); 
  50. }
  51.  
  52. R3MBA_InterpreterClid = 881504;
  53. function SetR3MBA_InterpreterClid(value) {
  54.   R3Set(this.r3obj, R3MBA_InterpreterClid, value, R3TID_INTEGER, 0); 
  55. }
  56.  
  57. function GetR3MBA_InterpreterClid() {
  58.   return R3Get(this.r3obj, R3MBA_InterpreterClid, R3TID_INTEGER, 0); 
  59. }
  60.  
  61. R3MBA_MacroString = 881505;
  62. function SetR3MBA_MacroString(value) {
  63.   R3Set(this.r3obj, R3MBA_MacroString, value, R3TID_STRING, 0); 
  64. }
  65.  
  66. function GetR3MBA_MacroString() {
  67.   return R3Get(this.r3obj, R3MBA_MacroString, R3TID_STRING, 0); 
  68. }
  69.  
  70. R3MBA_ShowText = 881506;
  71. function SetR3MBA_ShowText(value) {
  72.   R3Set(this.r3obj, R3MBA_ShowText, value, R3TID_INTEGER, 0); 
  73. }
  74.  
  75. function GetR3MBA_ShowText() {
  76.   return R3Get(this.r3obj, R3MBA_ShowText, R3TID_INTEGER, 0); 
  77. }
  78.  
  79.  
  80.  
  81. function r3Macrobutton () { 
  82.    this.base = r3God;
  83.    if(arguments.length) {
  84.       this.base(R3CLID_MACROBUTTON, arguments);
  85.    }
  86.    // Methods
  87.    this.EXECUTEMACRO=mR3MBM_EXECUTEMACRO;
  88.  
  89.    // Attributes
  90.    this.GetMacroName=GetR3MBA_MacroName;
  91.    this.SetMacroName=SetR3MBA_MacroName;
  92.    this.GetImageName=GetR3MBA_ImageName;
  93.    this.SetImageName=SetR3MBA_ImageName;
  94.    this.GetImage=GetR3MBA_Image;
  95.    this.SetImage=SetR3MBA_Image;
  96.    this.GetInterpreterClid=GetR3MBA_InterpreterClid;
  97.    this.SetInterpreterClid=SetR3MBA_InterpreterClid;
  98.    this.GetMacroString=GetR3MBA_MacroString;
  99.    this.SetMacroString=SetR3MBA_MacroString;
  100.    this.GetShowText=GetR3MBA_ShowText;
  101.    this.SetShowText=SetR3MBA_ShowText;
  102. }
  103.  
  104. r3Macrobutton.prototype=new r3Gadget;
  105. // r3macbut.h_H